﻿using ChuanYe.CountyFireManagement.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ChuanYe.CountyFireManagement.Api.Models
{


    public class CustomMessageArrayRequest { 
        public List<CustomMessageRequest> List { get; set; }
    }


    public class CustomMessageRequest
    {
        /// <summary>
        /// 主键
        /// </summary>
        public int MessageId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 部门
        /// </summary>
        public int? DepId { get; set; }

        /// <summary>
        /// 目标用户 接收者
        /// </summary>
        public int? TargetUserId { get; set; }

        /// <summary>
        /// 接收时间
        /// </summary>
        public DateTime? ReceiveTime { get; set; }

        /// <summary>
        /// 消息状态 0.未读 1.已读
        /// </summary>
        public int? Status { get; set; }


        /// <summary>
        /// 发送者
        /// </summary>
        public int SendUserId { get; set; }
    }

    public class ChangeMessageStatusRequest 
    {
        public int MessageId { get; set; }

        public int Status { get; set; }
    }

    public class ChangeMessageSearchRequest :  RequestPageBase
    {

        /// <summary>
        /// 消息编号
        /// </summary>
        public int? MessageId { get; set; }


        /// <summary>
        /// 状态
        /// </summary>
        public int? Status { get; set; }

        /// <summary>
        /// 发送者
        /// </summary>
        public int? SendUserId { get; set; }

        /// <summary>
        /// 目标用户 接收者
        /// </summary>
        public int? TargetUserId { get; set; }
    }

    public class RemoveOtherMessageRequest
    {
        /// <summary>
        /// 消息编号
        /// </summary>
        public int MessageId { get; set; }
    }
}
